package com.suixin.learn.persistence.factory;

import java.util.List;

public interface SqlSession {

    <E> List<E> selectList(String statementId,Object... params) throws Exception;

    <E> E selectOne(String statementId,Object... params) throws Exception;

    int update(String statementId,Object... params) throws Exception;
    int delete(String statementId,Object... params) throws Exception;
    int insert(String statementId,Object... params) throws Exception;

    <T> T getMapper(Class<?> mapperClass);
}
